﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FoodModel
{
    /// <summary>
    /// 菜品规格表
    /// </summary>
    [Table("SpecificationModel")]
    public class SpecificationModel
    {
        /// <summary>
        /// 菜品规格表Id
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int SpecificationId { get; set; }
        /// <summary>
        /// 规格名称
        /// </summary>
        [SugarColumn(IsPrimaryKey = false)]
        public string? SpecificationName { get; set; }

        /// <summary>
        /// 规格分离
        /// </summary>
        [SugarColumn(IsPrimaryKey = false)]
        public string? Separate { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<string>? Separates { get; set; }
    }
}
